<template>
    <div class="login">
        <el-button @click="send">发送图片</el-button>
    </div>
</template>
<script>
export default {
    data() {
        return {};
    },
    created() {},
    mounted() {},
    methods: {
        send(){
            let url = 'https://look.808b.com:3000/public/index.php/wechatapp/imagemagick/gifAddText'
            // $keys = ['bgImgSrc', 'text', 'x', 'y', 'deg','fontSize', 'fontColor', 'fontType', 'opacity'];
            let data = {
                bgImgSrc: 'https://look.808b.com:3000/public/uploads/20190928/b0f95d7c211e8820a04bd4ff2277be6a.gif',
                text: '打爆他的头',
                x: 0,
                y: 0,
                deg: 0,
                fontSize: 20,
                fontColor: '#000000',
                fontType: 'huakanghaibao',
                opacity: 1
            }
            this.$axios.post(url, data).then(res => {
                console.log(res)
            })
        }
    },
    filters: {},
    components: {}
};
</script>

<style lang="less" scope>
@import "./index.less";
</style>
